import { axios } from '@/utils/request'

//加入排队
export function Enqueue(data,headers) {
  return axios({
    url: '/model/cloudRenderer/Enqueue',
    method: 'post',
    params: data,
    headers
  })
}

//取消排队
export function Dequeue(data,headers) {
  return axios({
    url: '/model/cloudRenderer/Dequeue',
    method: 'post',
    params: data,
    headers
  })
}

// 心跳接口
export function heartbeat(data,headers) {
  return axios({
    url: '/model/cloudRenderer/heartbeat',
    method: 'post',
    params: data,
    headers
  })
}


// 启动云渲染
export function StartProject(data,headers) {
  return axios({
    url: '/model/cloudRenderer/StartProject',
    method: 'post',
    data: data,
    headers
  })
}

// 停止云渲染
export function StopProject(data,headers) {
  return axios({
    url: '/model/cloudRenderer/StopProject',
    method: 'post',
    params: data,
    headers
  })
}